home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / rtime.zip / RTIME.DOC < prev    next >
Text File  |  1987-05-29  |  1KB  |  39 lines

  1.                             joel wittenberg
  2.                             26march1987
  3.  
  4.             rtime.doc
  5.  
  6. This program measures the execution time of a program unde DOS.
  7. The usage is:
  8.     "rtime program_to_measure program_options program_arguments"
  9.  
  10. In other words, your normal command line syntax, preceeded by the
  11. invocation of rtime. Rtime does not eat any of the command line parameters
  12. intended for the application.
  13.  
  14. Unfortunately, DOS being what it is, this clean and simple usage of rtime
  15. fails when you try to time a batch file. In order to time a batch file
  16. you must spawn a copy of the command line interpreter and pass the batch
  17. file to it. Thus:
  18.     "rtime command /c batchfile args"
  19.  
  20. To make it somewhat easier to use I have added an option flag "-b", which
  21. will cause rtime to invoke the shell itself. Thus:
  22.     "rtime -b batchfile args"
  23.  
  24. This causes rtime to spawn command.com as the child and to pass to command.com
  25. a "/c" as the first parameter, "batchfile" as the second parameter, and "args"
  26. as the subsequent parameters.
  27.  
  28. Note that rtime options (currently only '-b' exists) must be given as the
  29. first argument on the command line, BEFORE the child name. All other args
  30. are passed on to the child unexamined.
  31.  
  32.  
  33. Feel free to use this program as you wish FOR NON-COMMERCIAL purposes.
  34.  
  35.         All commercial rights reserved
  36.         joel wittenberg
  37.         26 march 1987
  38.  
  39.